{% extends "base.html" %}
{% block title %}Viewing {{cloth.title}}{% endblock %}
{% block content %}
<div class='clothtitle'>
  {{cloth.title}}
</div>
<div class='clothview'>
  <img src='/cloth/{{cloth_key}}'>
</div>
<div class='clothcaption'>
  {{cloth.caption}}
</div>
<div class='clothtags'>
  Tags:
  {% for tag in cloth.tags %}
  <a href='/search?q={{tag}}'>{{tag}}</a>{% if not forloop.last %},{% endif %}
  {% endfor %}
</div>
<a href='/clothcategory/{{cloth.clothcategory.key}}'>Back to category</a>
{% endblock %}
